import type { AppRouteModule } from '/@/router/types'
import { RoleEnum } from '/@/enums/roleEnum'

import { LAYOUT } from '/@/router/constant'

const dashboard: AppRouteModule = {
  path: '/piazza',
  name: 'piazza',
  component: LAYOUT,
  redirect: '/piazza/index',
  meta: {
    orderNo: 5,
    icon: 'ion:grid-outline',
    title: '民宿广场',
    hideChildrenInMenu: true,
  },
  children: [
    {
      path: 'index',
      name: 'piazza',
      component: () => import('/@/views/piazza/index.vue'),
      meta: {
        // affix: true,
        title: '民宿广场',
        hideMenu: true,
      },
    },
    {
      path: 'detail',
      name: 'detail',
      component: () => import('/@/views/piazza/detail.vue'),
      meta: {
        // affix: true,
        title: '民宿详情',
        hideMenu: true,
      },
    },
  ],
}

export default dashboard
